const http = require('http')
const router = require('./router')

http.createServer((req, res) => {
  // 处理请求
  router(req, res);
}).listen(9999, () => console.log('http://localhost:9999 服务器已启动'))